package com.ryan.order.feignclient;

import com.ryan.utils.R;
import com.ryan.utils.vo.OrderRoute;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "route-service")
@Component
public interface RouteClient {
    @GetMapping("/route/front/getRouteById/{id}")
    public OrderRoute getRouteById(@PathVariable("id") String id);

    @PostMapping("/route/front/updateBuyCount")
    public void updateBuyCount(@RequestBody OrderRoute orderRoute);
}
